const sequelize = require("./db");
const {
    DataTypes
} = require('sequelize');

// 标题，发布时间，摘要，具体内容，标签，背景地址
const Admin = sequelize.define('Admin', {
    photo: {
        type: DataTypes.STRING,
        allowNull: false,
    },
    name: {
        type: DataTypes.STRING,
        allowNull: false,
    },    
    adminpwd: {
        type: DataTypes.STRING,
        allowNull: false,
    },
    admin_state: {
        type: DataTypes.STRING,
        // allowNull: false,
    }
}, {
    createdAt: false,
    updatedAt: false,
    paranoid: true,
});


module.exports = Admin;